 //XML sintax: loadXML(div, pag, obj = value)
 function loadXML(vrid, vrpag, vrobj)
 {
  try
  {
   vrxmlhttp = new XMLHttpRequest();
  }  
  catch(err)
  {
   try
   {
    vrxmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
   }
   catch(err)
   {
    try
    {
     vrxmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    catch(er)
    {
     vrxmlhttp = false;
    }
   }
  }  
  vrxmlhttp.open("GET",vrpag+vrobj,true);
  vrxmlhttp.onreadystatechange = function()
  {
   if (vrxmlhttp.readyState == 1)
   {
    document.getElementById(vrid).innerHTML = '<IMG src="img/pic_load.gif">';
   }
   else if (vrxmlhttp.readyState == 4)
   {
    document.getElementById(vrid).innerHTML = vrxmlhttp.responseText;
   }
  }  
  vrxmlhttp.send(null);
 }

